package com.yic.module.device.controller.admin.device.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;


/**
 * 设备基本信息 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class DeviceExcelVO {

    @ExcelProperty("主键")
    private Long id;

    @ExcelProperty("设备名称")
    private String name;

    @ExcelProperty("设备编号")
    private String code;

    @ExcelProperty("规格")
    private String spec;

    @ExcelProperty("序列号")
    private String sn;

    @ExcelProperty("MAC")
    private String mac;

    @ExcelProperty("用途说明")
    private String illustrate;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("设备分类")
    private Long categoryId;

    @ExcelProperty("供应商")
    private Long supplierId;

    @ExcelProperty("品牌")
    private Long brandId;

    @ExcelProperty("单位")
    private Long unitId;

    @ExcelProperty("使用部门")
    private Long deptId;

    @ExcelProperty("工作中心")
    private Long centerId;

    @ExcelProperty("工厂")
    private Long factoryId;

    @ExcelProperty("管理人员")
    private Long adminId;

    @ExcelProperty("使用人员")
    private Long userId;

    @ExcelProperty("使用位置")
    private String loacation;

    @ExcelProperty(value = "设备状态", converter = DictConvert.class)
    @DictFormat("device_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer status;

    @ExcelProperty(value = "使用状态", converter = DictConvert.class)
    @DictFormat("device_use_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer useStatus;

    @ExcelProperty("采购日期")
    private LocalDateTime procureTime;

    @ExcelProperty("图片")
    private String images;

    @ExcelProperty("文件")
    private String files;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
